###########################################################################################################
###### README: "Do Indirect Taxes Bite? How Hiding Taxes Erases Accountability Demands from Citizens." 
###### JOURNAL OF POLITICS
###### AUTHORS: Brandon de la Cuesta, Lucy Martin, Dan Nielson, Helen Milner
###### Prepared by Thomas Cunningham 
###### 15 November 2022
############################################################################################################

############################################################################################################
###### Software & Computational Specifications
############################################################################################################
Stata Version: 17.0
R Version: 4.2.1 64-bit
Operating System: Windows 10 Pro



############################################################################################################
###### Files and scripts by folder
############################################################################################################

###### Main Replication Folder
figure1.R : Creates maintext figure 1 "Taxation Over Time"

figure2.R : Creates maintext figure 2 "Coefficient distribution for direct and indirect taxes on vertical accountability and corruption"

figure3.R : Creates maintext figure 3 "Effect of visibility on subject utility"

figure4.R : Creates maintext figure 4 "Tax prevalence and certainty for most common taxes" AND 
			appendix figure B5 "Tax prevalence and certainty for most common taxes for restricted sample"

table2.R : Creates maintext table 2 "Treatment effects on punishment, ownership, and ladder position"

apptableA2.R : Creates appendix table A1 "Treatment effects on punishment, ownership, and ladder position"

apptableA3.R : Creates appendix table A3 "Effects with treatment-only specification"

apptableA4.R : Creates appendix table A4 "Evidence of utility gains from punishment"

apptableA5.do : Creates appendix table A5 "Mean leader transfer by treatment group"

apptableA6.do Creates appendix table A6 - Leader transfer and treatment 

apptableC1.R : Creates appendix table C1: "Variables used for extreme bounds analysis"

apptableC2.R : Creates appendix table C2 "Alternative dependent variables"

apptablesD.R : Creates appendix table D3 "Sample summary statistics in lab experiments" AND
					   appendix table D4 "Balance tests for successful randomization of lab experiment treatments" AND
					   appendix table D5 "Sample summary statistics in survey experiment" AND
					   appendix table D6 "Balance test for successful randomization of survey experiment treatments"

appfigureA3.R : Creates appendix figure A3 "Mean punishment thresholds, ownership, and ladder position by treatment condition"

appfigureA4.do : Creates appendix figure A4 "Average leader transfer by round for each treatment group"

appfigureC1.R : Creates appendix figure C1 "Robustness to alternative modeling choices

appfigureC2.R : Creates appendix figure C2 "Robustness to alternative dependent variable"

appfigureC3.R : Creates appendix figure C3 "Robustness to moving average of dependent and independent variables"

intext_claims.R : Replicates empirical claims from the maintext and appendix which are not expliticly shown in the other tables and figures

functions.R : R script of imported functions (described in script annotations)


###### "cleaning" subfolder
xnat_cleaning.R : Cleaning of World Bank WDI, Correlates of War, VDEM, ICTD, QoG, TID, UCDP/PRIO, World Bank Income Groups, World Bank Regions, PolityV, and accountability data for cross-national analyses. Output file: vat_panel_cleaned15Nov.RData


###### "data" subfolder
working_eba_function_current.R : R script containing function for extreme bounds analysis 

working_eba_function_dwtest.R : R script containing function for extreme bounds analysis Durbin Watson test (intext_claims)

###### "data/cleaned" subfolder
vat_panel_cleaned15Nov.RData : See xnat_cleaning.R 

uganda_jun17_cleaned.csv : Lab in the field experiment dataset

uganda_jun18_cleaned.csv : Survey experiment dataset

###### "data/other" subfolder
labexp_balvar_info.csv : Variable names, labels, and correspondence across datasets 

###### "data/xnat/accountability" subfolder
accountability.RData : From Lührmann, Anna; Marquardt, Kyle L; Mechkova, Valeriya, 2020, "Replication Data for: Constraining Governments: New Indices of Vertical, Horizontal and Diagonal Accountability", https://doi.org/10.7910/DVN/TI7ORN, Harvard Dataverse, V1

###### "data/xnat/cow" subfolder
states2016.csv : Correlates of War State System Membership v2016 - https://correlatesofwar.org/data-sets/state-system-membership/


###### "data/xnat/ictd" subfolder
Merged-2019-ICTD.dta : ICTD UNU-WIDER United Nations University World Institute for Development Economics Research GRD - Government Revenue Dataset - https://www.wider.unu.edu/project/grd-%E2%80%93-government-revenue-dataset

###### "data/xnat/other" subfolder
candidate_variables_10Nov2020.csv : Candidate variables, labels, descriptions, etc for cross-national analysis 
vat_varlist_final_02122020.csv : Cross national cleaned variable names, labels, descriptions, etc

###### "data/xnat/polity" subfolder
p4v2018.sav : Polity IV - http://www.systemicpeace.org/inscrdata.html 

###### "data/xnat/prio" subfolder
Dyadic_v19_1.rds : UCDP/PRIO Armed Conflict Dataset UCDP Dyadic Dataset version 19.1 - https://ucdp.uu.se/downloads/olddw.html 

###### "data/xnat/qog" subfolder
qog_std_ts_jan19.dta : University of Gothenburg Quality of Governance (QOG) Indicators Version January 2019 Time Series - https://www.gu.se/en/quality-government/qog-data/data-downloads/data-archive

###### "data/xnat/tid" subfolder
TID_selection_2019.csv : Tax Introduction Database (TID) version May 2019 - https://cadmus.eui.eu/handle/1814/65326

###### "data/xnat/vdem" subfolder
V-Dem-CY-Full+Others-v9.rds : Varieties of Democracy v10 - https://www.v-dem.net/data/dataset-archive/

###### "data/xnat/wdi" subfolder
WDIData-2019.csv : World Bank WDI https://databank.worldbank.org/source/world-development-indicators#
OGHIST.xlsx :  World Bank Income Groups - https://datahelpdesk.worldbank.org/knowledgebase/articles/906519-world-bank-country-and-lending-groups
CLASS.xlsx : World Bank Regions - https://datahelpdesk.worldbank.org/knowledgebase/articles/906519-world-bank-country-and-lending-groups


###### "figures" subfolder 
Contains maintext and appendix figures created as specified above

###### "results" subfolder 
Contains results and processed data from the scripts above for use in subsequent analyses and incorporation into text 























